package com.example.springbootdemo.returns;

import com.alibaba.fastjson.JSONObject;
import com.example.springbootdemo.enums.JsonValueEnum;
import com.example.springbootdemo.statics.JsonKeyStatic;

/**
 * @Author: ShengXiaJia
 * @Date: 2019/12/6 13:59
 * @Description: 通用返回
 */
public class JsonReturn {

    /**
     * 成功返回的Json
     */
    public JSONObject SUCCESS_JSON = new JSONObject();

    {
        SUCCESS_JSON.put(JsonKeyStatic.CODE, JsonValueEnum.SUCCESS.getCode());
        SUCCESS_JSON.put(JsonKeyStatic.DESC_ENGLISH, JsonValueEnum.SUCCESS.getDescEnglish());
        SUCCESS_JSON.put(JsonKeyStatic.DESC_CHINESE, JsonValueEnum.SUCCESS.getDescChinese());
    }

}
